//引入路由组件
import Home from '@/views/Home'
import Search from '@/views/Search'
import Login from '@/views/Login'
import Register from '@/views/Register'
import Detail from '@/views/Detail'
import ShopCart from '@/views/ShopCart'
import AddCartSuccess from '@/views/AddCartSuccess'
import Trade from '@/views/Trade'
export default [
    {
        path: "/trade",
        component: Trade,
        meta: { show: true },
        name: "trade"
    },
    {
        path: "/addCartSuccess",
        component: AddCartSuccess,
        meta: { show: true },
        name: "addCartSuccess"
    },
    {
        path: "/shopCart",
        component: ShopCart,
        meta: { show: true },
        name: "shopCart"
    },
    {
        path: "/detail/:skuid",
        component: Detail,
        meta: { show: true },
        name: "detail"
    },
    {
        path: "/home",
        component: Home,
        meta: { show: true },
        name: "home"
    },
    {
        path: "/search/:keyword?",
        component: Search,
        meta: { show: true },
        name: "search"
    },
    {
        path: "/login",
        component: Login,
        meta: { show: false },
        name: "login"
    },

    {
        path: "/register",
        component: Register,
        meta: { show: false },
        name: "register"
    },
]
